home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1682 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: sdd.hp.com!inn
  2. From: Jeff Grimmett <jgrimm@sdd.hp.com>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Must I free my linked lists? (GCC)
  5. Date: 22 Jan 1996 18:24:38 GMT
  6. Organization: Hewlett-Packard Company
  7. Message-ID: <4e0kp6$2tu@news.sdd.hp.com>
  8. References: <4dudic$aif@vixen.cso.uiuc.edu> <4dusp9$7k3@senator-bedfellow.MIT.EDU> <4dvn6t$lc3@hamilton.maths.tcd.ie>
  9. NNTP-Posting-Host: hpsdv330.sdd.hp.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
  14.  
  15. dwmalone@maths.tcd.ie (David Malone) wrote:
  16.  
  17. >I think the memory is freed in when you use malloc - in gcc or SAS/C.
  18.  
  19. Can't comment on gcc since I've never used it, but this is true for SAS/C 
  20. since at least 6.0, but...
  21.  
  22. -------> It only works if you leave the program using the <--------
  23. ----------------------> exit() function! <-------------------------
  24.  
  25. Because of this, I strongly recommend AGAINST relying on this feature of 
  26. the compiler.  It's not good practice, anyway.  It ties all your programs 
  27. to one compiler and thus limits your freedom.
  28.  
  29.  
  30.  
  31.